package kr.hkit.powerjava.chapter08;

class Point {
	private int x;
	private int y;
	
	public Point(int a, int b) {
		x = a;
		y = b;
	}
	
}

class Circle {
	private int radius = 0;
	private Point center;
	
	public Circle(Point p, int r) {
		center = p;
		radius = r;
	}
	
	public Point getCenter() {
		return center;
	}

	public void setCenter(Point center) {
		this.center = center;
	}

	@Override
	public String toString() {
		return "Circle [radius=" + radius + ", center=" + center + "]";
	}
	
}
public class CircleTest {
	public static void main(String[] args) {
		Point p = new Point (25, 78);
		Circle c = new Circle(p, 10);
		
		System.out.println(c);
	}
}
